﻿<!DOCTYPE html>

<html>

	<head>

		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

		<meta http-equiv="Content-Language" content="zh-CN">

		<title>jQuery焦点图切换</title>

		<script src="js/jquery.min.js"></script>

		<link rel="stylesheet" href="css/SYTLE.css" />

	</head>

	<body>

		<div class="foucebox">
			<!--大的图片-->
			<div class="bd">
				<div class="showDiv">
					<a href="#"><img src="images/1.jpg"></a>

					<div class="foucebox_bg"></div>

					<div>

						<h2 style="bottom: 60px;"><a href="#">标题</a></h2>

						<p style="bottom: 10px;">简介</p>

					</div>

				</div>
				<div class="showDiv">
					<a href="#"><img src="images/11.jpg"></a>

					<div class="foucebox_bg"></div>

					<div>

						<h2 style="bottom: 60px;"><a href="#">标题</a></h2>

						<p style="bottom: 10px;">简介</p>

					</div>

				</div>
				<div class="showDiv">
					<a href="#"><img src="images/12.jpg"></a>

					<div class="foucebox_bg"></div>

					<div>

						<h2 style="bottom: 60px;"><a href="#">标题</a></h2>

						<p style="bottom: 10px;">简介</p>

					</div>

				</div>
				<div class="showDiv">
					<a href="#"><img src="images/4.jpg"></a>

					<div class="foucebox_bg"></div>

					<div>

						<h2><a href="#">标题</a></h2>

						<p style="bottom: 10px;">简介</p>

					</div>

				</div>
				<div class="showDiv">
					<a href="#"><img src="images/5.jpg"></a>

					<div class="foucebox_bg"></div>

					<div>

						<h2><a href="#">标题</a></h2>

						<p style="bottom: 10px;">简介</p>

					</div>

				</div>
				<div class="showDiv">
					<a href="#"><img src="images/6.jpg"></a>

					<div class="foucebox_bg"></div>

					<div>

						<h2><a href="#">标题</a></h2>

						<p style="bottom: 10px;">简介</p>

					</div>

				</div>
				<div class="showDiv">
					<a href="#"><img src="images/7.jpg"></a>

					<div class="foucebox_bg"></div>

					<div>

						<h2><a href="#">标题</a></h2>

						<p style="bottom: 10px;">简介</p>

					</div>

				</div>
				<div class="showDiv">
					<a href="#"><img src="images/8.jpg"></a>

					<div class="foucebox_bg"></div>

					<div>

						<h2><a href="#">标题</a></h2>

						<p style="bottom: 10px;">简介</p>

					</div>

				</div>
			</div>
			<!--旁边小的图片-->
			<div class="hd">

				<ul>
					<li class="on">
						<a href="#"><img src="images/1.1.jpg"><span class="txt">标题</span><span class="txt_bg"></span><span class="mask"></span></a>
					</li>
					<li>
						<a href="#"><img src="images/1.11.jpg"><span class="txt">标题</span><span class="txt_bg"></span><span class="mask"></span></a>
					</li>
					<li>
						<a href="#"><img src="images/1.12.jpg"><span class="txt">标题</span><span class="txt_bg"></span><span class="mask"></span></a>
					</li>
					<li>
						<a href="#"><img src="images/1.4.jpg"><span class="txt">标题</span><span class="txt_bg"></span><span class="mask"></span></a>
					</li>
					<li>
						<a href="#"><img src="images/1.5.jpg"><span class="txt">标题</span><span class="txt_bg"></span><span class="mask"></span></a>
					</li>
					<li>
						<a href="#"><img src="images/1.6.jpg"><span class="txt">标题</span><span class="txt_bg"></span><span class="mask"></span></a>
					</li>
					<li>
						<a href="#"><img src="images/1.7.jpg"><span class="txt">标题</span><span class="txt_bg"></span><span class="mask"></span></a>
					</li>
					<li>
						<a href="#"><img src="images/1.8.jpg"><span class="txt">标题</span><span class="txt_bg"></span><span class="mask"></span></a>
					</li>
				</ul>
			</div>
		</div>
		<script type="text/javascript" src="js/jquery.SuperSlide.js"></script>
		<script type="text/javascript">
			$(".foucebox").slide({
				//		   	折叠特效（Fold Effect）通过折叠元素来隐藏或显示一个元素。
				effect: "fold",
				//表示开始播放
				autoPlay: true,
				//延迟时间
				delayTime: 300,
				
				startFun: function(i) {
					$(".foucebox .showDiv").eq(i).find("h2").css({
						display: "none",
						bottom: 0
					}).animate({
						opacity: "show",
						bottom: "60px"
					}, 300);
					$(".foucebox .showDiv").eq(i).find("p").css({
						display: "none",
						bottom: 0
					}).animate({
						opacity: "show",
						bottom: "10px"
					}, 300);
				}
			});
		</script>

	</body>

</html>